package com.haiqi.modules.ship.service;

import com.haiqi.common.persistence.dao.AisShipDynaMapper;
import com.haiqi.common.persistence.entity.AisShipDyna;
import com.haiqi.common.persistence.entity.ShipInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liuxiayan on 2017/4/12.
 */
@Service
public class AisShipDynaService {
    @Autowired
    private AisShipDynaMapper aisShipDynaMapper;

    public ShipInfo selectShip(){return aisShipDynaMapper.selectShip();}

    public AisShipDyna selectLocation(String mmsi) {return aisShipDynaMapper.selectLocation(mmsi);}
    public List<AisShipDyna> getListByShipNameOrMmsi(String shipName){
        return aisShipDynaMapper.getListByShipNameOrMmsi(shipName);
    }
    public List<AisShipDyna> getlocation(String[] mmsi){
        return aisShipDynaMapper.getlocation(mmsi);
    }
}
